<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>p1</title>
</head>
<body>
	<h1>P1</h1>
	<%
	request.setAttribute("var1", "我是一个数据来源于p1.jsp");
	session.setAttribute("var3", "我是一个Session数据来源于p1.jsp");
	request.getRequestDispatcher("p2.jsp").forward(request, response);
	
	%>
</body>
</html>